package com.quad.innovators.salesease.model.query.task;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.quad.innovators.salesease.common.base.BasePageQuery;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * @author cheng
 */
@EqualsAndHashCode(callSuper = true)
@Schema(description = "任务发布查询对象")
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class TaskDistributionQuery extends BasePageQuery {

    @Schema(description = "名字")
    private String name;

    @Schema(description = "执行位置类型 1-仓库 2-门店")
    private Integer addressType;

    @Schema(description = "执行位置Code")
    private String addressCode;

    @Schema(description = "任务状态")
    private Integer status;

    @Schema(description = "截止开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate deadlineStart;

    @Schema(description = "截止结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate deadlineEnd;

    @Schema(description = "所属标签")
    private String tagCode;

    @Schema(description = "单独设置为小程序使用")
    private Boolean H5NotShopFinishTaskAddress;

    @Schema(description = "执行人code")
    private String executorCode;
}
